﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'UpdateAllEsatdoDetallePedido')
	BEGIN
		DROP  Procedure  UpdateAllEsatdoDetallePedido
	END

GO

CREATE Procedure UpdateAllEsatdoDetallePedido
	@idPedido int,
	@estado bit
AS

UPDATE DetallePedido SET Estado = @estado WHERE IdPedido = @idPedido

GO


GRANT EXEC ON UpdateAllEsatdoDetallePedido TO PUBLIC

GO


